//: FileName : test.h
//: the header of test.cpp

#ifndef TEST_H
#define TEST_H

#include "mpi.h"
#include "unistd.h"
#include <cstring>
#include <iostream>
#include <vector>
#include <ctime>

void testHelloWorld(int argc, char* argv[]);
void testSendRecv(int argc, char* argv[]);
void testWTIME(int argc, char* argv[]);
void testMasterNode(int argc, char* argv[]);
void testTransitData(int argc, char* argv[]);
void testArr(int argc, char* argv[]);
void testMutualHello(int argc, char* argv[]);
void testAnyHello(int argc, char* argv[]);
void testJacobi(int argc, char* argv[]);
void testBcast(int argc, char* argv[]);
void testStruct(int argc, char* argv[]);
void testStruct2(int argc, char* argv[]);

struct man
{
    int age;
    double scores[2];
    double tt[2][3];
};

struct MyStruct
{
    int tag;
    double x;
    double y;
    double area;

    double lmd_tau[2];

    double* cParam;
    double* g;
    double* f;
    double* h;

    /*
     *double cParam[4];
     *double g[10000];
     *double f[10000];
     *double h[10000];
     */
};

#endif //: TEST_H
///:~
